//
//  SCPhotoModel.h
//  PhotoAlbum
//
//  Created by Chao Sheng on 2021/12/2.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SCPhotoModel : NSObject

@property (nonatomic, strong) PHAsset *asset;

@property (nonatomic, assign) BOOL isICloud;

@property (nonatomic, assign) BOOL isSelected;

@property (nonatomic, strong) NSString *imageNetworkingUrl;

/// 高清图
@property (nonatomic, strong) UIImage *highQualityImage;

/// 缩略图
@property (nonatomic, strong) UIImage *tempImage;

/// 选中序号(非选中的等于0，选中的大于0)
@property (nonatomic, assign) NSInteger selectedIndex;

/// 列表中的位置信息
@property (nonatomic, assign) NSInteger section;

/// 列表中的位置信息
@property (nonatomic, assign) NSInteger row;

/// 判断是否是添加图片cell
@property (nonatomic, assign) BOOL addPhoto;

/// 图片的size
@property (nonatomic, assign) CGSize imgSize;

/// 显示时间
@property (nonatomic, strong) NSDate *date;

/// 网络加载失败
@property (nonatomic, assign) BOOL downloadError;

///图像识别文本
@property (nonatomic, copy) NSString *ocrText;

/// 识别失败
@property (nonatomic, assign) BOOL ocrError;

/// 识别文本已经使用
@property (nonatomic, assign) BOOL ocrTextUsed;

///相机拍照
@property (nonatomic, assign) BOOL isCamera;

@end

@interface SCPhotoDateModel : NSObject

@property (nonatomic, strong) NSArray <SCPhotoModel*>*photoList;

@property (nonatomic, strong) NSDate *date;

@property (nonatomic, copy) NSString *dateName;

@end

NS_ASSUME_NONNULL_END
